﻿using System.Drawing;

namespace ModelLibrary.Image
{
    public class Resources
    {
        public static Bitmap Close(Size size)
        {
            Bitmap image = new Bitmap(size.Width, size.Height);
            using (Graphics graphics = Graphics.FromImage(image))
            {
                using (Brush brush = Brushes.Black)
                {
                    using (Pen pen = new Pen(brush))
                    {
                        graphics.DrawRectangle(pen, 0, 0, size.Width, size.Height);
                        graphics.DrawLine(pen, 0, 0, size.Width, size.Height);
                        graphics.DrawLine(pen, 0, size.Height, size.Width, 0);
                    }
                }
            }
            return image;
        }

    }
}
